/**
 * 
 */
function allcheck(){
	var oButton1 = document.getElementById('button1');
	var oCheck = document.getElementsByName('check');
	for (var i=0; i<=oCheck.length; i++)
		{
		oCheck[i].checked = true;
		}
}
function delAllDepart(){
	var allDepartId = new Array();
	var flag = false;
	var oCheck = document.getElementsByName('check');
	for (var i=0; i<=oCheck.length; i++){
		if(oCheck[i].checked){
		allDepartId.push(oCheck[i].value);
		flag = true;
		}
	}
	if(flag){
		if(confirm("您确定要删除这些记录吗？")){
			location.href="updateDepart?f=delall&allDepartId="+allsId;
		}
	}else{
		alter("请您至少选择一条记录，才能进行批量删除！");
	}
}